﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">

    <script type="text/javascript">
        function delay() {
            var test = document.getElementById('url');
            document.location.href = test.value;
        }
        setTimeout(delay, 5000);
        setInterval("jstimer.innerHTML=getLefttime();", 1000);
        var num = 5;
        function getLefttime() {
            var res = "";
            num--;
            res = "剩余" + num + "秒将自动跳转... O(∩_∩)O ";
            return (res);
        }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        <%=TempData["message"] %></h2>
    <br />
    <center>
        <div id="jstimer">
        </div>
    </center>
    <%=Html.Hidden("url", TempData["url"])%>
</asp:Content>
